package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CharLengthUnits {

    private int beginIndex;
    private int endIndex;
    private boolean characters;
    private boolean codeUnits;
    private boolean octets;

    public CharLengthUnits(int beginIndex, int endIndex, boolean characters, boolean codeUnits, boolean octets) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.characters = characters;
        this.codeUnits = codeUnits;
        this.octets = octets;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isCharacters() {
        return characters;
    }

    public boolean isCodeUnits() {
        return codeUnits;
    }

    public boolean isOctets() {
        return octets;
    }

}
